﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Forms/FormAdmin.master" AutoEventWireup="true" CodeBehind="CBAform.aspx.cs" Inherits="HRdex_Final.Forms.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div align="center">
      
    <table align="center" style="border-color: #0066FF; border-style: double; background-color: #FFFFFF;">
        <tr>
           <td colspan="5" style="font-size: xx-large">

                        <marquee>CBA FORM</marquee></td> 
        </tr>
        <tr id="formID">
            <td  style="height: 40px">
                <asp:Label ID="lblID" runat="server" ForeColor="#0066FF"></asp:Label>
            </td>
            <td colspan="4" rowspan="1" style="height: 40px">
                <asp:TextBox ID="txtCBAid" runat="server" Width="527px" 
                    style="text-align: left" Height="22px"></asp:TextBox>
                </td>
            </tr>
        <tr>
            <td>
            Student No.
                </td>
            <td style="width: 189px">
                <asp:TextBox ID="txtStudentNo" runat="server" Width="216px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rd0" 
                    runat="server" ControlToValidate="txtStudentNo" ErrorMessage="*" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 94px">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                &nbsp;</td>
            <td class="div-table-backbutton" style="width: 98px">
                <asp:Label ID="lblDate" runat="server" Text="Label"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblDateResult" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Course</td>
            <td style="width: 189px">
                <asp:DropDownList ID="dllCourse" runat="server" Height="16px" Width="223px" 
                    DataSourceID="Course" DataTextField="CourseName" DataValueField="CourseID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="Course" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catCourse]"></asp:SqlDataSource>
            </td>
            <td style="width: 94px">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                &nbsp;</td>
            <td class="div-table-backbutton" style="width: 98px">
                Year</td>
            <td>
                <asp:DropDownList ID="ddlYear" runat="server" DataSourceID="YEar" 
                    DataTextField="Year" DataValueField="YearID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="YEar" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catYear]"></asp:SqlDataSource>
            </td>
        </tr>
            <tr>
            <td style="height: 40px">
                Employee No.</td>
            <td rowspan="1" style="height: 40px; width: 189px;">
                <asp:TextBox ID="txtEmpNo" runat="server" Width="209px" 
                    style="text-align: left"></asp:TextBox>
                </td>
            <td rowspan="1" style="height: 40px; width: 94px;">
                Employee Name</td>
            <td colspan="2" style="height: 40px">
                <asp:TextBox ID="txtEmpName" runat="server" Width="209px" 
                    style="text-align: left"></asp:TextBox>
                </td>
            </tr>
            <td>
                Name of Beneficiary</td>
            <td colspan="4" rowspan="1">
                <asp:TextBox ID="txtFullName" runat="server" Width="519px" 
                    style="text-align: left" Height="21px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rd" 
                    runat="server" ControlToValidate="txtFullName" ErrorMessage="*" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
                <br />
                <small><small><small>(Last Name, First Name Middle Name)</small></small></small></td>
            <tr>
            <td>
                Office/Department/College</td>
            <td colspan="4" rowspan="1">
                <br />
                <small><small><small>
                <small><small><small>
                <asp:DropDownList ID="ddlDept" runat="server" DataSourceID="Department" 
                    DataTextField="DepartmentName" DataValueField="DeptID" Height="17px" 
                    Width="283px">
                </asp:DropDownList>
                <small><small><small>
                <small><small>
                <asp:DropDownList ID="ddlCollege" runat="server" DataSourceID="Collegei" 
                    DataTextField="CollegeName" DataValueField="CollegeID" Height="28px" 
                    Width="253px">
                </asp:DropDownList>
                <small><small><small>
                <small><small><small>
                <asp:SqlDataSource ID="Department" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catDepartment]"></asp:SqlDataSource>
                </small></small></small></small></small></small>
                <asp:SqlDataSource ID="Collegei" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                    SelectCommand="SELECT * FROM [catCollege]"></asp:SqlDataSource>
                </small></small></small></small></small>
                </small></small></small>(Department, Office)</small></small></small></td>
            </tr>
        <tr>
            <td colspan="5" style="height: 28px">
                Percentage Discount in the Fee:<asp:TextBox ID="txtDiscount" runat="server" 
                    Width="180px" Height="22px"></asp:TextBox>
                <asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtDiscount" 
                    ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            </tr>
        <tr>
            <td>
                Ordinal Position</td>
            <td rowspan="1" style="width: 189px">
                    
              
                <asp:TextBox ID="txtOrdinalPos" runat="server" Width="180px" Height="22px" 
                    AutoPostBack="True" onload="Page_Load" 
                    ontextchanged="txtOrdinalPos_TextChanged"></asp:TextBox>
                    
              
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" 
                    runat="server" ControlToValidate="txtOrdinalPos" ErrorMessage="*" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
                    
              
            </td>
            <td rowspan="1" style="width: 94px">
                    
              
                Cleared for</td>
            <td colspan="2" style="text-align: left">
                    
              
                <asp:TextBox ID="txtCleared" runat="server" Width="180px" Height="22px"></asp:TextBox>
                    
              
                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" 
                    runat="server" ControlToValidate="txtCleared" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                    
              
            </td>
            </tr>
        <tr>
            <td>
                Enrollment 
                </td>
            <td rowspan="1">
                <asp:TextBox ID="txtEnrollment" runat="server" Width="188px" Height="22px" 
                    style="text-align: left"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                    ControlToValidate="txtEnrollment" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td rowspan="1" style="width: 94px">
                With</td>
            <td colspan="2" style="text-align: left">
                <asp:TextBox ID="txtUnits" runat="server" Width="205px" Height="22px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                    ControlToValidate="txtUnits" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;<small><small><small>unit/s failed/dropped/inc./no grade</small></small></small></td>
            </tr>
        <tr>
            <td>
                Attached Supporting Documents</td>
            <td colspan="4" rowspan="1">
                <asp:FileUpload ID="fuAttachment" runat="server" />
&nbsp;<em><span style="font-size: 8pt"><asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator14" runat="server" ControlToValidate="fuAttachment" 
                    ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
                Please make sure all the requirements are in zip folder.
                </span></em>
            </td>
            </tr>
        <tr>
            <td colspan="5">
                <asp:Label ID="lblConfirmation" runat="server" ForeColor="#0066FF"></asp:Label>
                <table id="approval" align="right">
     <tr>
        <td>
                <asp:Label ID="lblSig" runat="server" ForeColor="#0066FF">Human Resource Department:</asp:Label>
            </td>
        <td>
                <asp:TextBox ID="txtStatus" runat="server" Width="77px" Height="22px"></asp:TextBox>
            <asp:DropDownList ID="ddlStatus" runat="server" Height="22px" 
                Width="102px" style="text-align: center">
                <asp:ListItem Value="Denied">Denied</asp:ListItem>
                <asp:ListItem Value="Approved">Approved</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>     
    </table>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                    onclick="btnSubmit_Click" />
                <asp:Button ID="btnClear" runat="server" Text="Clear" 
                    CausesValidation="False" onclick="btnClear_Click" />    

            </td>
            <td>
                &nbsp;</td>
        </tr>

        </table>
      
    <div style="text-align: center">

    </div>
</div>

</asp:Content>
